package com.java110.intf.cart;

import com.alibaba.fastjson.JSONObject;
import com.java110.dto.mallReport.MallReportDto;
import com.java110.dto.mallReport.SellingCostDto;
import com.java110.dto.storeOrder.ResultComputeStoreOrderPriceDto;
import com.java110.dto.storeOrder.StoreOrderReturnPayDto;
import com.java110.intf.FeignConfiguration;
import com.java110.vo.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @ClassName IStoreOrderInnerServiceSMO
 * @Description 购物车接口类
 * @Author wuxw
 * @Date 2019/4/24 9:04
 * @Version 1.0
 * add by wuxw 2019/4/24
 **/
@FeignClient(name = "mall-cart", configuration = {FeignConfiguration.class})
@RequestMapping("/unifiedOrderApi")
public interface IUnifiedOrderInnerServiceSMO {

    /**
     * <p>查询小区楼信息</p>
     * @param reqJson 数据对象分享
     * @return StoreOrderDto 对象数据
     */
    @RequestMapping(value = "/unifiedOrder", method = RequestMethod.POST)
    StoreOrderReturnPayDto  unifiedOrder(@RequestBody JSONObject reqJson);


    @RequestMapping(value = "/payNotifyOrder", method = RequestMethod.POST)
    ResponseEntity<String> payNotifyOrder(@RequestBody JSONObject reqJson);


    /**
     * <p>查询小区楼信息</p>
     * @param reqJson 数据对象分享
     * @return StoreOrderDto 对象数据
     */
    @RequestMapping(value = "/computeGroupProductPrice", method = RequestMethod.POST)
    ResultComputeStoreOrderPriceDto computeGroupProductPrice(@RequestBody JSONObject reqJson);


    @RequestMapping(value = "/unifiedGroupProductOrder", method = RequestMethod.POST)
    ResultVo unifiedGroupProductOrder(@RequestBody JSONObject reqJson);

    @RequestMapping(value = "/computeSkillProductPrice", method = RequestMethod.POST)
    ResultComputeStoreOrderPriceDto computeSkillProductPrice(@RequestBody JSONObject reqJson);


    @RequestMapping(value = "/unifiedKillProductOrder", method = RequestMethod.POST)
    ResultVo unifiedKillProductOrder(@RequestBody JSONObject reqJson);
}
